int x = character - '0';
int i = (int)(c - '0');
char c = '5'; int x = c - '0';
int i; char c = 'A'; i = (int)c;